import {RouteRecordRaw} from "vue-router";
import Greet from "../../../ui/layout/layout.vue";

let modules = import.meta.glob('./user/*.ts', {eager: true, import: 'default'});
const routes: RouteRecordRaw[] = []
for (let entry of Object.values(modules)) {
    routes.push(entry as RouteRecordRaw)
}
const user: RouteRecordRaw = {
    children: routes,
    path: '/user',
    component: Greet,
    meta: {
        icon: 'p-user',
        title: 'menu.user',
    }
};
export default user;